package com.chinasofti.mydate;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDemo03 {
    public static void main(String[] args) {
        Date date = new Date();
         //yyyy年mm月dd日
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String result = sdf.format(date);
        System.out.println("result="+result );
    }}
